package com.agy.filemanager.service.impl;

import com.agy.filemanager.entity.DcManagerInfo;
import com.agy.filemanager.entity.TreeModel;
import com.agy.filemanager.mapper.DcSystemDao;
import com.agy.filemanager.mapper.DcSystemManagerInfoDao;
import com.agy.filemanager.service.DcSystemManagerInfoService;
import com.agy.filemanager.service.DcSystemService;
import com.agy.filemanager.toolClass.MyMapper;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 系统设置-系统管理员维护
 * @author jpf
 */
@Service
public class DcSystemManagerInfoServiceImpl implements DcSystemManagerInfoService {
    @Autowired
    private DcSystemManagerInfoDao dcSystemManagerInfoDao;

    /**
     * -select
     * @return
     */
    @Override
    public Page selectManagerInfo(int pageNum,int pageSize,String account) {
        Page page = PageHelper.startPage(pageNum,pageSize);
        List<DcManagerInfo> list = this.dcSystemManagerInfoDao.selectManagerInfo(account);
        return page;
    }

    /**
     * 单条删除
     * @param id
     */
    @Override
    public void deleteById(String id) {
        this.dcSystemManagerInfoDao.deleteById(id);
    }

    /**
     * 修改
     * @param entity
     */
    @Override
    public void update(DcManagerInfo entity) {
        this.dcSystemManagerInfoDao.update(entity);
    }
}
